﻿
@{
    ViewBag.Title = "我的商品";
    Layout = "~/Views/Shared/_MallLayout.cshtml";
    var merber = ViewBag.member as token_user_info;
    long curUserId = ViewBag.CurUserId;
}
<body class="page-center page-wallet  thestore">
    <div>
        <div class="lt-box">
            <div class="item bg1 mb30">
                <a href="/BazaarProduct/Product" class="infos">
                    <div class="info">
                        <p>我发布的商品</p>
                        <span>查看明细<i class="icon-go3"></i></span>
                    </div>
                    <i class="icon-shop1"></i>
                </a>
            </div>
            <div class="item bg2 mb30">
                <a href="/MyOrder/sellerOrderList?type=2" class="infos">
                    <div class="info">
                        <p>我卖出的商品</p>
                        <span>查看明细<i class="icon-go3"></i></span>
                    </div>
                    <i class="icon-shop2"></i>
                </a>
            </div>
            <div class="item bg3 mb30">
                <a href="/MyOrder/OrderList?type=2" class="infos">
                    <div class="info">
                        <p>我购买的商品</p>
                        <span>查看明细<i class="icon-go3"></i></span>
                    </div>
                    <i class="icon-shop3"></i>
                </a>
            </div>
        </div>
    </div>
    <div class="lt-footNav ">
        <ul>
            <li>
                <a href="/BazaarProduct/Index">
                    <i class="icon-footNav6"></i>
                    <p>集市</p>
                </a>
            </li>
            <li>
                <a href="#" id="edit_product">
                    <i class="icon-footNavAdd"></i>
                </a>
            </li>
            <li class="cur">
                <a href="javascript:toMine();">
                    <i class="icon-footNav5"></i>
                    <p>我的</p>
                </a>
            </li>
        </ul>
    </div>
    <script src="~/Scripts/token-common.js"></script>
    <script type="text/javascript">
        function toMine() {
           var userId = Number('@curUserId');
           if (userId == 0) {
               var loginResult = isLogin();
               if (!loginResult)
                   return loginResult;
           }
           window.location.href = '/BazaarOrder/Index';
        }
   $(function(){
    $(".thestoreft li").click(function() {
        $(this).addClass('cur').siblings().removeClass('cur');
       });
       $("#edit_product").click(function () {
           var userId = Number('@curUserId');
           if (userId == 0) {
               var loginResult = isLogin();
               if (!loginResult)
                   return loginResult;
           }
           try {
               if (browser.versions.ios) {
                   window.webkit.messageHandlers.BazaarProductEdit.postMessage(0);
               } else if (browser.versions.android) {
                   androidfuntion.BazaarProductEdit(0)
               }
           } catch (e) {
               if (browser.versions.ios || browser.versions.android) {
                   layer.msg("请升级app");
               }
               else {
                   layer.msg("请在app内操作");
               }
           }
       });
})
    </script>
</body>

